package cn.csg.iotplatform.module.system.controller.admin.userdept.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;
import java.util.*;

@Schema(description = "管理后台 - 用户设备单位授权新增/修改 Request VO")
@Data
public class UserDeptSaveReqVO {

    @Schema(description = "用户ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "30202")
    @NotNull(message = "用户ID不能为空")
    private Long userId;

    @Schema(description = "部门ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "19705")
    @NotNull(message = "部门ID不能为空")
    private List<Long> deptIds;

    @Schema(description = "子部门创建是否自动授权", requiredMode = Schema.RequiredMode.REQUIRED, example = "1-自动授权0-不授权")
    private Integer autoAuth;

}